import Vue from "vue";
import Router from "vue-router";
import { superAdminRouter } from "@/router/modules/super-admin";
import Layout from "@/views/layout/index";

Vue.use(Router);

export const constantRouterMap = [
  {
    path: "/login",
    component: () => import("@/views/Login"),
    hidden: true
  }

];

export default new Router({
  mode: "history",
  scrollBehavior: () => ({ y: 0 }),
  // base: process.env.BASE_URL,
  routes: constantRouterMap
});

export const asyncRouterMap = [
  ...superAdminRouter,
  { path: "*", component: () => import("@/views/404"), hidden: true }
];
